<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0030)http://localhost:8080/House-2/ -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>郑州租房 - 首页</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<LINK rel=stylesheet type=text/css
	href="<%=request.getContextPath()%>/css/style.css">
<META name=GENERATOR content="MSHTML 8.00.7601.17514">
</HEAD>
<BODY>
	<script type="text/javascript">
		function doSearch(index) {
			document.getElementById("index").value=index;
			document.getElementById("sform").submit();
		}
	</script>

	<DIV id=header class=wrap>
		<DIV id=logo>
			<IMG src="<%=request.getContextPath()%>/images/logo.gif">
		</DIV>
		<DIV class=search>
			<LABEL class="ui-green searchs"><a href="<%=request.getContextPath()%>/FabuServlet" title="">发布房屋信息</a></LABEL>
			<LABEL class=ui-green><INPUT
				onclick='document.location="index.jsp"' value="退       出"
				type=button name=search></LABEL>
		</DIV>
	</DIV>
	<DIV id=navbar class=wrap>
		<DL class="search clearfix">
			<FORM id=sform method=post
				action="<%=request.getContextPath()%>/HouseServlet?opr=find">
				<input type="hidden" name="pageIndex" id="index" />
				<DT>
					<UL>
						<LI class=bold>房屋信息</LI>
						<LI>标题：<INPUT class=text type=text name=title
							value="${param.title }"> <LABEL class=ui-blue><INPUT
								onclick=doSearch(1) value=搜索房屋 type=button name=search></LABEL>
						</LI>
					</UL>
				</DT>
				<DD>
					<UL>
						<LI class=first>价格</LI>
						<LI><SELECT name=price>
								<OPTION selected value="">不限</OPTION>
								<OPTION value=0-100
									<c:if test='${param.price eq "0-100" }'>selected</c:if>>100元以下</OPTION>
								<OPTION value=100-200
									<c:if test='${param.price eq "100-200" }'>selected</c:if>>100元—200元</OPTION>
								<OPTION value=200-1000000
									<c:if test='${param.price eq "200-1000000" }'>selected</c:if>>200元以上</OPTION>
						</SELECT></LI>
					</UL>
				</DD>
				<DD>
					<UL>
						<LI class=first>房屋位置</LI>
						<LI><SELECT id=street name=street_id>
								<OPTION selected value="">不限</OPTION>
								<OPTION value=1000>知春路</OPTION>
								<OPTION value=1001>中关村大街</OPTION>
								<OPTION value=1002>学院路</OPTION>
								<OPTION value=1003>朝阳路</OPTION>
						</SELECT></LI>
					</UL>
				</DD>
				<DD>
					<UL>
						<LI class=first>房型</LI>
						<LI><SELECT name=type_id>
								<OPTION selected value="">不限</OPTION>
								<OPTION value=1000>一室一厅</OPTION>
								<OPTION value=1001>一室两厅</OPTION>
								<OPTION value=1002>两室一厅</OPTION>
								<OPTION value=1003>两室两厅</OPTION>
						</SELECT></LI>
					</UL>
				</DD>
				<DD>
					<UL>
						<LI class=first>面积</LI>
						<LI><SELECT name=floorage>
								<OPTION selected value="">不限</OPTION>
								<OPTION value=0-40>40以下</OPTION>
								<OPTION value=40-500>40-500</OPTION>
								<OPTION value=500-1000000>500以上</OPTION>
						</SELECT></LI>
					</UL>
				</DD>
			</FORM>
		</DL>
	</DIV>
	<DIV class="main wrap">
		<TABLE class=house-list>
			<TBODY>
				<c:forEach items="${page.list}" var="house">
					<TR>
						<TD class=house-thumb><span><A href="details.htm"
								target="_blank"><img
									src="<%=request.getContextPath()%>/images/thumb_house.gif"
									width="100" height="75" alt=""></a></span></TD>
						<TD>
							<DL>
								<DT>
									<A href="details.htm" target="_blank">${house.title }</A>
								</DT>
								<DD>${house.street.district.name }${house.street.name },${house.floorage }平米<BR>联系方式：${house.contact }
								</DD>
							</DL>
						</TD>
						<TD class=house-type>${house.types.name }</TD>
						<TD class=house-price><SPAN>${house.price }</SPAN>元/月</TD>
					</TR>
				</c:forEach>
			</TBODY>
		</TABLE>
		<DIV class=pager>
			<UL>
				<c:if test="${page.pageIndex<page.pageCount}">
					<LI><A href="javascript:void(0);"
						onclick="doSearch(${page.pageIndex+1})">下一页</A></LI>
					<LI><A href="javascript:void(0);"
						onclick="doSearch(${page.pageCount})">末页</A></LI>
				</c:if>
				<c:if test="${page.pageIndex>1}">
					<LI class=current><A href="javascript:void(0);"
						onclick="doSearch(1)">首页</A></LI>
					<LI><A href="javascript:void(0);"
						onclick="doSearch(${page.pageIndex-1})">上一页</A></LI>
				</c:if>


			</UL>
			<SPAN class=total>${page.pageIndex }/${page.pageCount }页</SPAN>
		</DIV>
	</DIV>
	<DIV id=footer class=wrap>
		<DL>
			<DT>郑州租房 © 2010云和学院 京ICP证1000001号</DT>
			<DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD>
		</DL>
	</DIV>
</BODY>
</HTML>
